<!-- 协助临床情况说明 -->
<template>
	<view style="width: 100%;">
		<uni-list>
			<uni-list-item :show-arrow="false" title="编号" :note="datas.assCode" />
			<uni-list-item :show-arrow="false" title="检查日期" :note="datas.assTime|dateFormat" />
			<uni-list-item :show-arrow="false" title="养殖场" :note="datas.decCompany" />
			<uni-list-item :show-arrow="false" title="货主" :note="datas.assShipper" />
			<uni-list-item :show-arrow="false" title="动物种类" :note="datas.breedName" />
			<uni-list-item :show-arrow="false" title="规格/数量" :note="datas.assSpecOrNum" />
			<uni-list-item :show-arrow="false" title="渔业官方兽医" :note="datas.veterinaryName" />
			<uni-list-item :show-arrow="false" title="检疫地点" :note="datas.assAddress" />
			<uni-list-item :show-arrow="false" title="异常情况" :note="datas.assType" />
			<uni-list-item :show-arrow="false" title="协助检疫人员" :note="datas.assQuaper" />
			<uni-list-item :show-arrow="false" title="所在单位" :note="datas.assCompany" />
			<uni-list-item :show-arrow="false" title="签发日期" :note="datas.recordTime|dateFormat"/>
		</uni-list>
	</view>
</template>

<script>
import uniSection from '@/components/uni-section/uni-section.vue';
import uniList from '@/components/uni-list/uni-list.vue';
import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
import loginjs from '@/login.js'
import {
		mapState
	} from 'vuex'
export default {
	computed: mapState(['baseUrl']),
	components: {
		uniSection,
		uniList,
		uniListItem
	},
	data() {
		return {
			datas: {
			},
			Authorization:null
		};
	},
	methods: {
		onLoad(option) {
			this.Authorization = loginjs.getAuthorization();
			this.getList(option.id)
		},
		getList(id) {
			uni.request({
				method: "GET",
				url: this.baseUrl + 'api/quarantine/assist/' + id,
				header: {
					"Authorization": this.Authorization,
				},
				success: (res) => {
					this.datas = res.data.data
					if(this.datas.assType==1){
						this.datas.assType='未发现'
					}else{
						this.datas.assType='发现'
					}
				}
			})
		}
	}
};
</script>

<style>

</style>
